package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 第三方服务OpenFeign接口
 *
 * @author DuGuanghan
 * @since 2024-08-20 10:08:35
 */
@FeignClient("gulimall-third-party")
public interface ThirdPartyFeignService {

    /**
     * 验证码获取接口
     *
     * @param phone 手机号
     * @param code  验证码
     * @return {@link R }
     * @author DuGuanghan
     * @since 2024-08-20 10:10:33
     */
    @GetMapping("/sms/sendCode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);

}
